/**
 * @author CH_ywx
 * @Date 2023-05-28
 * @Description
 */
package io.xccit.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.Data;

/**
 *@author CH_ywx
 *@Date 2023-05-28
 *@Description 模拟乐观/悲观锁的实体类(商品)
 */
@Data
public class Product {
    @TableId("id")
    private Long id;
    private String name;
    private Integer price;
    @Version //标识乐观锁版本号字段
    private Integer version;
}
